<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xml:lang="it" lang="it">
<head>
  <title>Help the death</title>
  <%= stylesheet_link_tag "generale" , :media => "screen" %>
  <%= javascript_include_tag :defaults %>
</head>
<body>
  <div id="container">
    <div id="header">
      <div id="menu" class="float_left">
         <ul>
            <li class="llblock">
              <%= link_to "home", :controller => "general", :action => "index" %>
            </li>
            <li class="llblock">
              <%= link_to "persone", :controller => "people", :action => "index" %>
            </li>
            <li class="llblock">
              <%= link_to "statistiche", :controller => "statistics", :action => "index" %>
            </li>
         </ul>
      </div>
      
      <!-- Mostro login/logout -->
      <div id="login_logout" class="float_left">
        <% if @user_session.is_logged? %>
          <%= render :partial => "sessions/logout" %>
        <% else %>
          <%= render :partial => "sessions/login" %>
        <% end %>
      </div>
      
      <div class="rem_float"></div>
    </div>
    
    <div id="content">
      <div id="left_content" class="float_left">
        <% if flash[:notice] -%>
          <div id="notice" class="flash">
            <p><%= flash[:notice] %></p>
          </div>
        <% end -%>
        <% if flash[:warning] %>
          <div id="warning" class="flash">
            <%= flash[:warning] %>
          </div>
        <% end -%>
        <% if flash[:error] %>
          <div id="error" class="flash">
            <%= flash[:error] %>
          </div>
        <% end -%>
        
        <%= yield %>
      </div>

      <div id="right_content" class="float_left">
        <% unless @user_session.is_logged? %>
          <%= link_to image_tag("linloutsup/registrati.png"), {:controller => "users", :action => "new"}, {:alt => "Sign up"} %>
        <% end %>
      </div>
      <div class="rem_float"></div>
    </div>
  </div>
</body>
</html>